﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GalconGame.Objects;
using System.IO;
using Microsoft.Xna.Framework.Storage;
namespace GalconGame.Database
{
    class HighScoreData
    {
        public HighScore[][] highScores;
        public string fileName = "HighScores.dat";
        public void Initialize() 
        {
            int countLevel = Enum.GetNames(typeof(Common.Difficulty)).Length;
            int countPlayer = 5;
            for (int i = 0; i < countLevel; i++) 
            {
                highScores[i] = new HighScore[countPlayer];
            }
        }

        public void addPlayerHighScore(HighScore current) 
        {

        }

        public void savePlayerHighScore()
        {
            Serializable save = new Serializable();
            save.saveFile(highScores, fileName);
        }

        public void loadPlayerHighScore() 
        {

        }
    }
}
